home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 June / CHIP Haziran 2001.iso / prog / share / 04 / setup.exe / MM6.Cab / F1458_WipeTransition.action.F6A680DD_F3FB_4CF3_BABB_0D0F06E630F5 < prev    next >
Text File  |  2000-08-17  |  8KB  |  181 lines

  1. <html>
  2.  
  3.     <head>
  4.         <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  5.         <title>Wipe Transition Action</title>
  6.         <meta name="generator" content="Adobe GoLive 5">
  7.     </head>
  8.  
  9.     <body bgcolor="white">
  10.         <center>
  11.             <font size="6">Wipe Transition Action</font>
  12.             <hr>
  13.         </center>
  14.         <csactionclass name="Wipe Transition" function="CSStartWipe" nsversion="4" ieversion="4">
  15.         <csactionparam name="layer" type="GLActionLayerParam"></csactionparam>
  16.         <csactionparam name="steps" type="GLActionNumParam"></csactionparam>
  17.         <csactionparam name="mode" type="GLActionEnumParam">
  18.         <csactionenum name="Wipe In From Left To Right" value='"_inRight"'>
  19.         <csactionenum name="Wipe In From Right To Left" value='"_inLeft"'>
  20.         <csactionenum name="Wipe In From Top To Bottom" value='"_inBottom"'>
  21.         <csactionenum name="Wipe In From Bottom To Top" value='"_inTop"'>
  22.         <csactionenum name="Wipe Out From Left To Right" value='"_outRight"'>
  23.         <csactionenum name="Wipe Out From Right To Left" value='"_outLeft"'>
  24.         <csactionenum name="Wipe Out From Top To Bottom" value='"_outBottom"'>
  25.         <csactionenum name="Wipe Out From Bottom To Top" value='"_outTop"'>
  26.         <csactionenum name="Wipe Center In" value='"_inCenter"'>
  27.         <csactionenum name="Wipe Center Out" value='"_outCenter"'>
  28.         </csactionparam>
  29.         </csactionclass>
  30.         <p>IE Functions Script
  31.         <script language="JavaScript1.2" src="../../GlobalScripts/IE.scpt" cyberversion="N1.2"></script>
  32.         </p>
  33.         <p>MainLoop Functions Script
  34.         <script language="JavaScript1.2" src="../../GlobalScripts/MainLoop.scpt"></script>
  35.         </p>
  36.         <p>StyleVis Functions Script
  37.         <script language="JavaScript1.2" src="../../GlobalScripts/StyleVis.scpt" cyberversion="N1.2"></script>
  38.         </p>
  39.         <p>SytleTrans Functions Script
  40.         <script language="JavaScript1.2" src="../../GlobalScripts/StyleTrans.scpt"></script>
  41.         </p>
  42.         <p>Wipe Transition Script
  43.         <script language="JavaScript1.2" cyberversion="N1.2"><!--
  44. function CSStartWipe (action)
  45. {
  46.     var el=CSCreateTransElement (action[1], action[2]);
  47.     if (el==null) return;
  48.     var dir=action[3];
  49.     if (dir=="_inLeft") {el.steps=el.clipRect.width/el.maxValue; el.modus="in";}
  50.     else if (dir=="_inRight") {el.steps=el.clipRect.width/el.maxValue; el.modus="in";}
  51.     else if (dir=="_outLeft") {el.steps=el.clipRect.width/el.maxValue; el.modus="out";}
  52.     else if (dir=="_outRight") {el.steps=el.clipRect.width/el.maxValue; el.modus="out";}
  53.     else if (dir=="_inTop") {el.steps=el.clipRect.height/el.maxValue; el.modus="in";}
  54.     else if (dir=="_inBottom") {el.steps=el.clipRect.height/el.maxValue; el.modus="in";}
  55.     else if (dir=="_outTop") {el.steps=el.clipRect.height/el.maxValue; el.modus="out";}
  56.     else if (dir=="_outBottom") {el.steps=el.clipRect.height/el.maxValue; el.modus="out";}
  57.     else if (dir=="_inCenter") {el.HSteps=el.clipRect.width/el.maxValue; el.VSteps=el.clipRect.height/el.maxValue; el.modus="in";}
  58.     else if (dir=="_outCenter") {el.HSteps=el.clipRect.width/el.maxValue; el.VSteps=el.clipRect.height/el.maxValue; el.modus="out";}
  59.     if (el.modus=="") return;
  60.     el.currentValue=0;
  61.     el.glDir=action[3];
  62.     CSStartFunction(CSDoWipe,el);
  63. }
  64. function CSDoWipe (info)
  65. {
  66.     var el = info.data;
  67.     if (el==null) return false;
  68.     if (el.currentValue==el.maxValue) { CSFinishWipe(el); return false; }
  69.     var r = new CSRect(el.clipRect.left,el.clipRect.top,el.clipRect.width,el.clipRect.height);
  70.     var dir=el.glDir;
  71.     if (dir=="_inLeft") {r.left=r.width-el.currentValue*el.steps;}
  72.     else if (dir=="_inTop") {r.top=r.height-el.currentValue*el.steps;}
  73.     else if (dir=="_inRight") {r.width=el.currentValue*el.steps;}
  74.     else if (dir=="_inBottom") {r.height=el.currentValue*el.steps;}
  75.     else if (dir=="_outLeft") {r.width=r.width-el.currentValue*el.steps;}
  76.     else if (dir=="_outTop") {r.height=r.height-el.currentValue*el.steps;}
  77.     else if (dir=="_outRight") {r.left=el.currentValue*el.steps;}
  78.     else if (dir=="_outBottom") {r.top=el.currentValue*el.steps;}
  79.     else if (dir=="_inCenter") {r=CSCenterRectIn(el,r);}
  80.     else if (dir=="_outCenter") {r=CSCenterRectOut(el,r);}
  81.     CSSetLayerClip(el,r);
  82.     el.currentValue+=1;
  83.     return true;
  84. }
  85. function CSFinishWipe (el)
  86. {
  87.     if (el.modus=="in") CSSetLayerClip(el,el.clipRect);
  88.     else { 
  89.         el.clipRect=new CSRect(0,0,el.width,el.height); 
  90.         CSSetLayerClip(el,el.clipRect); 
  91.         CSSetStyleVis(el.layer,0);
  92.     }
  93.     CSDisposeTransElement(el);
  94. }
  95. function CSCenterRectIn(el,r)
  96. {
  97.     var hValue= el.currentValue*el.HSteps/2;
  98.     var vValue= el.currentValue*el.VSteps/2;
  99.     r.left=Math.round(r.left+r.width/2-hValue); 
  100.     r.top=Math.round(r.top+r.height/2-vValue); 
  101.     r.width=Math.round(hValue*2);
  102.     r.height=Math.round(vValue*2);
  103.     return r;
  104. }
  105. function CSCenterRectOut(el,r)
  106. {
  107.     var hValue= el.currentValue*el.HSteps/2;
  108.     var vValue= el.currentValue*el.VSteps/2;
  109.     r.left+=Math.round(hValue); 
  110.     r.top+=Math.round(vValue); 
  111.     r.width-=Math.round(hValue*2);
  112.     r.height-=Math.round(vValue*2);
  113.     return r;
  114. }
  115. // -->
  116.         </script>
  117.         </p>
  118.  
  119.         <table cool width="221" height="153" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
  120.             <tr height="1" cntrlrow>
  121.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  122.                 <td width="4" height="1"><spacer type="block" width="4" height="1"></td>
  123.                 <td width="76" height="1"><spacer type="block" width="76" height="1"></td>
  124.                 <td width="140" height="1"><spacer type="block" width="140" height="1"></td>
  125.             </tr>
  126.             <tr height="6">
  127.                 <td width="1" height="6"><spacer type="block" width="1" height="6"></td>
  128.                 <td width="4" height="6"><spacer type="block" width="4" height="6"></td>
  129.                 <td width="76" height="6"><spacer type="block" width="76" height="6"></td>
  130.                 <td width="140" height="6"><spacer type="block" width="140" height="6"></td>
  131.             </tr>
  132.             <tr height="3">
  133.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  134.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  135.                 <td width="76" height="3"><spacer type="block" width="76" height="3"></td>
  136.                 <td width="140" height="22" colspan="1" rowspan="2" valign="top" align="left" xpos="80">
  137.                     <csactioncntrl name="layer" x="80" y="6" width="136" height="18" alignx="scale" aligny="top">
  138.                 </td>
  139.             </tr>
  140.             <tr height="19">
  141.                 <td width="1" height="19"><spacer type="block" width="1" height="19"></td>
  142.                 <td width="4" height="19"><spacer type="block" width="4" height="19"></td>
  143.                 <td width="76" height="19" colspan="1" rowspan="1" valign="top" align="left" xpos="4">
  144.                     <csactioncntrl type="InfoText" value="Floating Box" x="4" y="9" width="70" height="17" alignx="left" aligny="top">
  145.                 </td>
  146.             </tr>
  147.             <tr height="3">
  148.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  149.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  150.                 <td width="76" height="3"><spacer type="block" width="76" height="3"></td>
  151.                 <td width="140" height="22" colspan="1" rowspan="2" valign="top" align="left" xpos="80">
  152.                     <csactioncntrl name="mode" x="80" y="28" width="136" height="18" alignx="scale" aligny="top">
  153.                 </td>
  154.             </tr>
  155.             <tr height="19">
  156.                 <td width="1" height="19"><spacer type="block" width="1" height="19"></td>
  157.                 <td width="4" height="19"><spacer type="block" width="4" height="19"></td>
  158.                 <td width="76" height="19" colspan="1" rowspan="1" valign="top" align="left" xpos="4">
  159.                     <csactioncntrl type="InfoText" value="Transition" x="4" y="31" width="72" height="16" alignx="left" aligny="top">
  160.                 </td>
  161.             </tr>
  162.             <tr height="3">
  163.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  164.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  165.                 <td width="76" height="3"><spacer type="block" width="76" height="3"></td>
  166.                 <td width="140" height="102" colspan="1" rowspan="2" valign="top" align="left" xpos="80">
  167.                     <csactioncntrl name="steps" x="80" y="50" width="63" height="18" alignx="left" aligny="top">
  168.                 </td>
  169.             </tr>
  170.             <tr height="99">
  171.                 <td width="1" height="99"><spacer type="block" width="1" height="99"></td>
  172.                 <td width="4" height="99"><spacer type="block" width="4" height="99"></td>
  173.                 <td width="76" height="99" colspan="1" rowspan="1" valign="top" align="left" xpos="4">
  174.                     <csactioncntrl type="InfoText" value="Steps" x="4" y="53" width="35" height="16" alignx="left" aligny="top">
  175.                 </td>
  176.             </tr>
  177.         </table>
  178.     </body>
  179.  
  180. </html>
  181.